using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using QuanLyThietBi.Config;     
using QuanLyThietBi.Entity;
namespace QuanLyThietBi.ManagerBase
{
                

     public abstract class TBL_DanhSachLoiManagerBase
    {
        public TBL_DanhSachLoiManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>TBL_DanhSachLoiEntity</returns>
        public TBL_DanhSachLoiEntity Insert(TBL_DanhSachLoiEntity obj)
        { 
            return (TBL_DanhSachLoiEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>TBL_DanhSachLoiEntity</returns>
        public TBL_DanhSachLoiEntity Update(TBL_DanhSachLoiEntity obj)
        { 
            return (TBL_DanhSachLoiEntity)Adapter.Update(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo dieu kien trong object
        /// </summary>
        /// <returns>TBL_DanhSachLoiEntity</returns>
        public TBL_DanhSachLoiEntity UpdateWithCondition(TBL_DanhSachLoiEntity obj,TBL_DanhSachLoiEntity objCond)
        { 
            return (TBL_DanhSachLoiEntity)Adapter.UpdateWithCondition(obj,objCond);             
        }
 
 
        public TBL_DanhSachLoiEntity Delete(TBL_DanhSachLoiEntity obj)
        { 
            return (TBL_DanhSachLoiEntity)Adapter.Delete(obj);             
        }
 
 
        public TBL_DanhSachLoiEntity DeleteWithCondition(TBL_DanhSachLoiEntity objCond)
        { 
            return (TBL_DanhSachLoiEntity)Adapter.DeleteWithCondition(objCond);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien GhiChu duoc set trong object
        /// </summary>
        /// <returns>TBL_DanhSachLoiEntity</returns>
        public TBL_DanhSachLoiEntity DeleteByGhiChu (TBL_DanhSachLoiEntity obj)
        { 
            return (TBL_DanhSachLoiEntity)Adapter.DeleteByField(obj,"GhiChu");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien GhiChu 
        /// </summary>
        /// <returns>TBL_DanhSachLoiEntity</returns>
        public TBL_DanhSachLoiEntity DeleteByGhiChu (string GhiChu )
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.GhiChu = GhiChu;  
            return (TBL_DanhSachLoiEntity)Adapter.DeleteByField(obj,"GhiChu");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaLoi duoc set trong object
        /// </summary>
        /// <returns>TBL_DanhSachLoiEntity</returns>
        public TBL_DanhSachLoiEntity DeleteByMaLoi (TBL_DanhSachLoiEntity obj)
        { 
            return (TBL_DanhSachLoiEntity)Adapter.DeleteByField(obj,"MaLoi");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaLoi 
        /// </summary>
        /// <returns>TBL_DanhSachLoiEntity</returns>
        public TBL_DanhSachLoiEntity DeleteByMaLoi (string MaLoi )
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.MaLoi = MaLoi;  
            return (TBL_DanhSachLoiEntity)Adapter.DeleteByField(obj,"MaLoi");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaNhomLoi duoc set trong object
        /// </summary>
        /// <returns>TBL_DanhSachLoiEntity</returns>
        public TBL_DanhSachLoiEntity DeleteByMaNhomLoi (TBL_DanhSachLoiEntity obj)
        { 
            return (TBL_DanhSachLoiEntity)Adapter.DeleteByField(obj,"MaNhomLoi");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaNhomLoi 
        /// </summary>
        /// <returns>TBL_DanhSachLoiEntity</returns>
        public TBL_DanhSachLoiEntity DeleteByMaNhomLoi (string MaNhomLoi )
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.MaNhomLoi = MaNhomLoi;  
            return (TBL_DanhSachLoiEntity)Adapter.DeleteByField(obj,"MaNhomLoi");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MoTaLoi duoc set trong object
        /// </summary>
        /// <returns>TBL_DanhSachLoiEntity</returns>
        public TBL_DanhSachLoiEntity DeleteByMoTaLoi (TBL_DanhSachLoiEntity obj)
        { 
            return (TBL_DanhSachLoiEntity)Adapter.DeleteByField(obj,"MoTaLoi");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MoTaLoi 
        /// </summary>
        /// <returns>TBL_DanhSachLoiEntity</returns>
        public TBL_DanhSachLoiEntity DeleteByMoTaLoi (string MoTaLoi )
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.MoTaLoi = MoTaLoi;  
            return (TBL_DanhSachLoiEntity)Adapter.DeleteByField(obj,"MoTaLoi");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NoidungXuly duoc set trong object
        /// </summary>
        /// <returns>TBL_DanhSachLoiEntity</returns>
        public TBL_DanhSachLoiEntity DeleteByNoidungXuly (TBL_DanhSachLoiEntity obj)
        { 
            return (TBL_DanhSachLoiEntity)Adapter.DeleteByField(obj,"NoidungXuly");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NoidungXuly 
        /// </summary>
        /// <returns>TBL_DanhSachLoiEntity</returns>
        public TBL_DanhSachLoiEntity DeleteByNoidungXuly (string NoidungXuly )
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.NoidungXuly = NoidungXuly;  
            return (TBL_DanhSachLoiEntity)Adapter.DeleteByField(obj,"NoidungXuly");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien TenLoi duoc set trong object
        /// </summary>
        /// <returns>TBL_DanhSachLoiEntity</returns>
        public TBL_DanhSachLoiEntity DeleteByTenLoi (TBL_DanhSachLoiEntity obj)
        { 
            return (TBL_DanhSachLoiEntity)Adapter.DeleteByField(obj,"TenLoi");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien TenLoi 
        /// </summary>
        /// <returns>TBL_DanhSachLoiEntity</returns>
        public TBL_DanhSachLoiEntity DeleteByTenLoi (string TenLoi )
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.TenLoi = TenLoi;  
            return (TBL_DanhSachLoiEntity)Adapter.DeleteByField(obj,"TenLoi");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public TBL_DanhSachLoiEntity Select(TBL_DanhSachLoiEntity obj)
        { 
            return (TBL_DanhSachLoiEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_DanhSachLoiEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_DanhSachLoiEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new TBL_DanhSachLoiEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new TBL_DanhSachLoiEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_DanhSachLoiEntity> SelectAllLST()
        { 
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_DanhSachLoiEntity()),new TBL_DanhSachLoiEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_DanhSachLoiEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_DanhSachLoiEntity(),option),new TBL_DanhSachLoiEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien GhiChu duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByGhiChu (TBL_DanhSachLoiEntity obj)
        { 
            return Adapter.SelectByField(obj,"GhiChu");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GhiChu duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByGhiChu (TBL_DanhSachLoiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"GhiChu",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GhiChu duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DanhSachLoiEntity></returns>
        public List<TBL_DanhSachLoiEntity> SelectByGhiChuLST (TBL_DanhSachLoiEntity obj)
        { 
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"GhiChu"),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GhiChu duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DanhSachLoiEntity></returns>
        public List<TBL_DanhSachLoiEntity> SelectByGhiChuLST (TBL_DanhSachLoiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"GhiChu",option),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GhiChu 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByGhiChu (string GhiChu )
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.GhiChu = GhiChu;  
            return Adapter.SelectByField(obj,"GhiChu");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GhiChu duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByGhiChu (string GhiChu, SelectOptions option)
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.GhiChu = GhiChu;  
            return Adapter.SelectByField(obj,"GhiChu",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GhiChu 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DanhSachLoiEntity> SelectByGhiChuLST (string GhiChu )
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.GhiChu = GhiChu;  
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"GhiChu"),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GhiChu duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DanhSachLoiEntity> SelectByGhiChuLST (string GhiChu, SelectOptions option)
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.GhiChu = GhiChu;  
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"GhiChu",option),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaLoi (TBL_DanhSachLoiEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaLoi");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaLoi (TBL_DanhSachLoiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaLoi",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaLoi duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DanhSachLoiEntity></returns>
        public List<TBL_DanhSachLoiEntity> SelectByMaLoiLST (TBL_DanhSachLoiEntity obj)
        { 
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaLoi"),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaLoi duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DanhSachLoiEntity></returns>
        public List<TBL_DanhSachLoiEntity> SelectByMaLoiLST (TBL_DanhSachLoiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaLoi",option),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaLoi 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaLoi (string MaLoi )
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.MaLoi = MaLoi;  
            return Adapter.SelectByField(obj,"MaLoi");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaLoi (string MaLoi, SelectOptions option)
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.MaLoi = MaLoi;  
            return Adapter.SelectByField(obj,"MaLoi",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaLoi 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DanhSachLoiEntity> SelectByMaLoiLST (string MaLoi )
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.MaLoi = MaLoi;  
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaLoi"),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DanhSachLoiEntity> SelectByMaLoiLST (string MaLoi, SelectOptions option)
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.MaLoi = MaLoi;  
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaLoi",option),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNhomLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaNhomLoi (TBL_DanhSachLoiEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaNhomLoi");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNhomLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaNhomLoi (TBL_DanhSachLoiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaNhomLoi",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNhomLoi duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DanhSachLoiEntity></returns>
        public List<TBL_DanhSachLoiEntity> SelectByMaNhomLoiLST (TBL_DanhSachLoiEntity obj)
        { 
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaNhomLoi"),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNhomLoi duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DanhSachLoiEntity></returns>
        public List<TBL_DanhSachLoiEntity> SelectByMaNhomLoiLST (TBL_DanhSachLoiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaNhomLoi",option),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNhomLoi 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaNhomLoi (string MaNhomLoi )
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.MaNhomLoi = MaNhomLoi;  
            return Adapter.SelectByField(obj,"MaNhomLoi");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNhomLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaNhomLoi (string MaNhomLoi, SelectOptions option)
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.MaNhomLoi = MaNhomLoi;  
            return Adapter.SelectByField(obj,"MaNhomLoi",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNhomLoi 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DanhSachLoiEntity> SelectByMaNhomLoiLST (string MaNhomLoi )
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.MaNhomLoi = MaNhomLoi;  
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaNhomLoi"),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNhomLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DanhSachLoiEntity> SelectByMaNhomLoiLST (string MaNhomLoi, SelectOptions option)
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.MaNhomLoi = MaNhomLoi;  
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaNhomLoi",option),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MoTaLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMoTaLoi (TBL_DanhSachLoiEntity obj)
        { 
            return Adapter.SelectByField(obj,"MoTaLoi");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MoTaLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMoTaLoi (TBL_DanhSachLoiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MoTaLoi",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MoTaLoi duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DanhSachLoiEntity></returns>
        public List<TBL_DanhSachLoiEntity> SelectByMoTaLoiLST (TBL_DanhSachLoiEntity obj)
        { 
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MoTaLoi"),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MoTaLoi duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DanhSachLoiEntity></returns>
        public List<TBL_DanhSachLoiEntity> SelectByMoTaLoiLST (TBL_DanhSachLoiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MoTaLoi",option),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MoTaLoi 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMoTaLoi (string MoTaLoi )
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.MoTaLoi = MoTaLoi;  
            return Adapter.SelectByField(obj,"MoTaLoi");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MoTaLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMoTaLoi (string MoTaLoi, SelectOptions option)
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.MoTaLoi = MoTaLoi;  
            return Adapter.SelectByField(obj,"MoTaLoi",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MoTaLoi 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DanhSachLoiEntity> SelectByMoTaLoiLST (string MoTaLoi )
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.MoTaLoi = MoTaLoi;  
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MoTaLoi"),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MoTaLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DanhSachLoiEntity> SelectByMoTaLoiLST (string MoTaLoi, SelectOptions option)
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.MoTaLoi = MoTaLoi;  
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MoTaLoi",option),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoidungXuly duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNoidungXuly (TBL_DanhSachLoiEntity obj)
        { 
            return Adapter.SelectByField(obj,"NoidungXuly");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoidungXuly duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNoidungXuly (TBL_DanhSachLoiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NoidungXuly",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoidungXuly duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DanhSachLoiEntity></returns>
        public List<TBL_DanhSachLoiEntity> SelectByNoidungXulyLST (TBL_DanhSachLoiEntity obj)
        { 
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NoidungXuly"),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoidungXuly duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DanhSachLoiEntity></returns>
        public List<TBL_DanhSachLoiEntity> SelectByNoidungXulyLST (TBL_DanhSachLoiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NoidungXuly",option),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoidungXuly 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNoidungXuly (string NoidungXuly )
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.NoidungXuly = NoidungXuly;  
            return Adapter.SelectByField(obj,"NoidungXuly");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoidungXuly duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNoidungXuly (string NoidungXuly, SelectOptions option)
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.NoidungXuly = NoidungXuly;  
            return Adapter.SelectByField(obj,"NoidungXuly",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoidungXuly 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DanhSachLoiEntity> SelectByNoidungXulyLST (string NoidungXuly )
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.NoidungXuly = NoidungXuly;  
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NoidungXuly"),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoidungXuly duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DanhSachLoiEntity> SelectByNoidungXulyLST (string NoidungXuly, SelectOptions option)
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.NoidungXuly = NoidungXuly;  
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NoidungXuly",option),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTenLoi (TBL_DanhSachLoiEntity obj)
        { 
            return Adapter.SelectByField(obj,"TenLoi");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTenLoi (TBL_DanhSachLoiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"TenLoi",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenLoi duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DanhSachLoiEntity></returns>
        public List<TBL_DanhSachLoiEntity> SelectByTenLoiLST (TBL_DanhSachLoiEntity obj)
        { 
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TenLoi"),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenLoi duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DanhSachLoiEntity></returns>
        public List<TBL_DanhSachLoiEntity> SelectByTenLoiLST (TBL_DanhSachLoiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"TenLoi",option),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenLoi 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTenLoi (string TenLoi )
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.TenLoi = TenLoi;  
            return Adapter.SelectByField(obj,"TenLoi");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTenLoi (string TenLoi, SelectOptions option)
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.TenLoi = TenLoi;  
            return Adapter.SelectByField(obj,"TenLoi",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenLoi 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DanhSachLoiEntity> SelectByTenLoiLST (string TenLoi )
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.TenLoi = TenLoi;  
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TenLoi"),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenLoi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DanhSachLoiEntity> SelectByTenLoiLST (string TenLoi, SelectOptions option)
        { 
            TBL_DanhSachLoiEntity obj = new TBL_DanhSachLoiEntity();
            obj.TenLoi = TenLoi;  
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TenLoi",option),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DanhSachLoiEntity></returns>
        public List<TBL_DanhSachLoiEntity> SelectWithConditionLST (TBL_DanhSachLoiEntity obj)
        { 
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new TBL_DanhSachLoiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DanhSachLoiEntity></returns>
        public List<TBL_DanhSachLoiEntity> SelectWithConditionLST (TBL_DanhSachLoiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_DanhSachLoiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new TBL_DanhSachLoiEntity());
        }

}
}
